home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
ca29_3.zip
/
PC-2-PC.DOC
< prev
next >
Wrap
Text File
|
1992-11-30
|
22KB
|
880 lines
COM-AND Inter-PC File transfer
-----------------------------------------
COM-AND Inter-PC File transfer
Script based file transfer for the IBM PC
-----------------------------------------
COM-AND, and the PC-2-PC script are copyright 1992 by CABER
Software. COM-AND is distributed freely and may be copied by
anyone for any number of machines, for purposes of evaluation.
The author offers COM-AND and its accessory programs as "share-
ware". If you USE the program after evaluating it, you MUST
pay for it.
The complete user license and registration information is to be
found in the file REGISTER.DOC. Limitations on redistribution
of COM-AND are set out in the file VENDOR.DOC. These two files
are included with the COM-AND program release.
CABER Software
R. (Scott) McGinnis
P.O. Box 3607 Mdse Mart
Chicago, IL 60654-0607
GEnie, Delphi: TARTAN
CIS .......... 73147,2665
Internet ..... 73147.2665@compuserve.com
Version 1.1: 921012
COM-AND Inter-PC File transfer
Table of Contents
-----------------
I. Introduction .............................................. page 1
A. What is COM-AND? ........................................ page 1
B. The PC-2-PC script ...................................... page 1
II. Installing the script ...................................... page 2
A. Install COM-AND ......................................... page 2
B. Placing PC-2-PC.CMD ..................................... page 2
C. (optional) Create a batch file to invoke the script ..... page 2
III. Script initialization ...................................... page 3
IV. File transfers ............................................. page 5
A. Wildcard transfer ....................................... page 5
B. Selected file transfer .................................. page 6
V. Exit ....................................................... page 7
VI. DOS gateway ................................................ page 8
VII. Program Requirements ....................................... page 9
VIII. Program and Author Information ............................ page 10
Appendices
----------
A. Null modem ................................................ page 11
B. Async port speeds .......................................... page 12
C. Modem configuration ........................................ page 13
1. DTR ..................................................... page 13
2. CD ...................................................... page 13
3. Modem Escape ............................................ page 14
4. Hangup .................................................. page 14
5. Modem Init .............................................. page 14
Version 1.1: 921012
COM-AND Inter-PC File transfer Page 1
I. Introduction
A. What is COM-AND?
COM-AND for the IBM PC and compatibles is a communications
program for use by itself, or for use with several integrated
accessory programs (which themselves may be used independently of
COM-AND). COM-AND provides standard comm program functions: a
dialing directory, macros, disk logging, binary and ASCII file
transfers, scripted execution and so on.
B. The PC-2-PC script
This document details the PC-2-PC script included with the COM-AND
release. PC-2-PC script supports:
o Direct and dialed connection between two PCs
o Current directory displays for each PC (on both PCs)
o Change drive/directory from either PC, on either PC
o Wild card multiple file transfer from/to either PC
o Selected file transfer from/to either PC
o DOS gateway during connection
Version 1.1: 921012
COM-AND Inter-PC File transfer Page 2
II. Installation
A. Install COM-AND
Refer to the COM-AND release documents (README.DOC and COM-AND.
DOC) for the description of COM-AND installation, please.
B. Placing PC-2-PC.CMD
The script file PC-2-PC.CMD should be placed in the COM-AND
default subdirectory. If you use the environment variable
"COM-AND="..., PC-2-PC should be placed in the subdirectory
indicated by that environment variable. Otherwise, place the
script in the same subdirectory as COM-AND.
C. (optional) Create a batch file to invoke the script
Optionally, you may create a batch file to invoke the script.
PC-2-PC is an interpreted script... and therefore gives the
best performance if executed from a RAMDisk. If you have such a
beast, use it! [Folk more modern (than the author) who use
caching utilities may freely ignore this advice.]
PC-2-PC connects to another machine either through a dialed
number or by direct connect. If you are setting up a direct
connect, using an async port other than the usual modem port (I
myself disable my mouse...), a batch file is particularly helpful.
For example, I have a batch file to invoke this script:
c:
cd\prod
copy pc-2-pc.cmd e:
com-and com1 115k /fe:pc-2-pc
[My default COM-AND subdirectory is C:\PROD. PC-2-PC.CMD is
placed in C:\PROD. My RAMDisk is E:. The mouse serial port
is COM1 (my modem and my COM-AND's default is COM2). "115k" in
COM-AND's run command sets the COM1 async port speed to 115k.
The "/fe:pc-2-pc" in COM-AND's run command executes the script
after COM-AND's load-time initialization.]
Version 1.1: 921012
COM-AND Inter-PC File transfer Page 3
III. Script initialization
When PC-2-PC.CMD is executed by COM-AND, there'll be a pause (the
length of which is determined by the speed of the disk on which the
script resides). At its start, the script 'GOTO's the end, to draw
the window. It may seem a silly way to write a script, but once
COM-AND has read the whole script once, performance is improved
drastically!
The first thing PC-2-PC does is to open a double window. The left
side of the screen always lists files in the current subdirectory
on the current machine. The right side displays the subdirectory on
the other machine once you're connected.
Once the window opens, PC-2-PC begins building and displaying the
current subdirectory. Again, this may take a bit of time... be
patient. When all's done, a window opens over top of the file
list, prompting for action.
At this point, you need to see that COM-AND and the PC-2-PC script
are ready to connect on the machine with which you wish to talk.
Ready both machines. On one, it doesn't matter which, select either:
2) Wait for direct connect
4) Wait for call connect
If you are making a direct connect, you are prompted to allow port
and speed specification(s). A carriage return alone at this point
starts the 'waiting'. If you are making a dialed connect, the script
simply goes into an autoanswer mode waiting for a call.
Version 1.1: 921012
COM-AND Inter-PC File transfer Page 4
III. Script initialization (continued)
On the other machine, then select as appropriate:
1) Direct connect
3) Dial the remote PC
If you are making a direct connect, you are prompted to allow port
and speed specification(s). A carriage return alone at this point
starts connection process. If you are making a dialed connect,
you are asked for a dialing directory number for the number to call
and its parameters. [The script does not display the dialing direc-
tory for you at this time. You need to know it.]
One point to emphasize: The script waiting for connection should
be started first. The script 'making' the connect should then be
started.
If the two scripts recognize each other, they begin by exchanging
subdirectory lists. When the lists have been exchanged,